/*
*子组件向上层层转发事件
 */
//import  Vue from 'vue'
var dispatch = function(eventName,data){
    var parent = this.$parent;
    while(parent){
        parent.$emit(eventName,data)
        parent = parent.$parent;
    }
}
export default dispatch;
